<template>
  <div class="bottom">
    <div class="bottom__price">
      实付金额 <b>&yen;{{ cartEffect.price }}</b>
    </div>
    <div class="bottom__btn" @click="showCover">提交</div>
  </div>
</template>

<script>
import { useCartEffect } from "../../components/cartCommon/commonCartEffect";

export default {
  setup(props, context) {
    const { cartEffect } = useCartEffect();
    const { emit } = context;
    const showCover = () => {
      emit("showCover", true);
    };
    return { cartEffect, showCover };
  },
};
</script>

<style lang="scss" scoped>
@import "../../style/viriables";
.bottom {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.49rem;
  background-color: $color-fff;
  &__price {
    flex: 1;
    font-size: 0.14rem;
    color: $content-fontcolor;
    padding-left: 0.24rem;
    line-height: 0.49rem;
  }
  &__btn {
    width: 0.98rem;
    height: 100%;
    background-color: #4fb0f9;
    color: $color-fff;
    line-height: 0.49rem;
    text-align: center;
  }
}
</style>